@wrapper-width: 69em;
@font-size: 14px;
@font-stack: helvetica, arial, verdana, sans-serif;

.gradient(@from:transparent, @to:transparent) {
    background-color: @from;
    background-image: -webkit-gradient(linear,left top,left bottom,from(@from),to(@to));
    background: -moz-linear-gradient(top,@from,@to);
}

.shadow(@x:0px, @y:0px, @z:0px, @color:transparent) {
    -webkit-box-shadow: @x @y @z @color;
    -moz-box-shadow: @x @y @z @color;
    box-shadow: @x @y @z @color;
}

.round(@radius:0px) {
    -webkit-border-radius: @radius;
    -moz-border-radius: @radius;
    border-radius: @radius;
}

body {
    font-family: @font-stack;
    font-size: @font-size;
    color: #333;
    text-rendering: optimizeLegibility;
}

h1,h2,h3,h4,h5 {
    color: #222;
    font-weight: bold;
    letter-spacing: -0.06em;
}

h2 {
    font-size: 1.5em;
    margin: .5em 0px;
}

#wrapper {
    width: @wrapper-width;
    margin: 2em auto;
}

.clearfix { clear: both; }

a {
    outline: none;
    color: inherit;
    text-decoration: none;
}

@nav-width: 10em;

#nav {
    float: left;
    width: @nav-width;
    
    ul li a {
        color: #555;
        display: block;
        padding: .75em;
        font-weight: bold;
    }
    
    ul li a:hover {
        color: #900;
    }
}

#main {
    float: right;
    width: @wrapper-width - @nav-width;
/*    border-left: solid 1px #ccc;*/
    
    
    h2:first-child {
        margin-top: 0px;
    }
    
    div.box {
        margin: 0px;
        padding: 0px;
        margin-bottom: 3em;
        border: solid 1px #999;
        .round(.25em);
        padding: 1em;
        .shadow(0px,2px,3px,rgba(0,0,0,.3));
        .gradient(transparent,rgba(0,0,0,.02));
    }
}

#main table {
    width: 100%;
    border-collapse: collapse;
    margin: 0px;
    padding: 0px;
    
    td, th {
        text-align: left;
        padding: @font-size;
        padding-top: 0px;
        vertical-align: top;
    }
    
    tr td:first-child, tr th:first-child {
        padding-left: 0px;
    }
    
    td {
        font-size: .85em;
    }
    
    td img {
        max-height: 1.5em;
    }
    
    th {
        text-transform: uppercase;
        color: #999;
        font-size: .8 * @font-size;
        padding-bottom: .35 * @font-size;
    }
    
    td input[type="text"], td textarea {
        width: 100%;
        border: solid 1px #ccc;
        font-size: @font-size;
        padding: .25em;
        font-family: @font-stack;
        color: #999;
        .shadow(inset,0px,2px,rgba(0,0,0,.075));
        .round(.25em);
    }
    
    th span {
        color: #ddd;
        display: inline-block;
        margin-left: 1em;
    }
    
    td input[type="text"]:focus, td textarea:focus {
        border: solid 1px #c00;
        color: #222;
    }
    
    textarea {
        min-height: 8em;
        line-height: 1.4em;
    }
    
    .zip {
        width: 3.5 * @font-size;
    }
    
    #zip {
        text-align: center;
    }
}

#footer {
    text-align: center;
    margin-top: 3em;
    font-size: .8em;
    color: #999;
}

#top {
    margin-bottom: 1em;
    border-bottom: solid 2px #222;
    padding-bottom: 1em;
    
    h1 {
        vertical-align: top;
        float: left;
        font-size: 2.5em;
    }
    
    img {
        vertical-align: top;
        max-height: 2.5em;
        float: right;
    }
}

@tb-width: 30em;

#main p label {
    display: inline-block;
    width: 8em;
    vertical-align: top;
    margin-bottom: 1em;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
}

#main p input[type="text"], #main p textarea {
    font-family: @font-stack;
    padding: .5em;
    font-size: @font-size;
    color: #999;
    vertical-align: top;
    margin-bottom: 1em;
    width: @tb-width;
    background-image: -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.05)),to(transparent),color-stop(.2,transparent));
    border: solid 1px #ccc;
    .round(.25em);
}

#main p input[type="text"]:focus, #main p textarea:focus {
    color: #333;
    border: solid 1px #c00;
}

#main p textarea {
    min-height: 15em;
    background-image: -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.05)),to(transparent),color-stop(.03,transparent));
}

/*#main p input[type="submit"] {
    padding: .5em 1em;
    border: solid 1px transparent;
    .gradient(#c00,#900);
    color: #fff;
    font-size: 1em;
    font-family: @font-stack;
    text-shadow: 0px 1px 1px rgba(0,0,0,.4);
    .shadow(0px,2px,3px,rgba(0,0,0,.4));
    .round(.25em);
    margin-left: 8em;
}
*/
#main p input[type="file"] {
    margin-bottom: 1em;
}

/*#main .box:first-child table tr:last-child td input[type="submit"] {
    border: solid 1px transparent;
    font-family: @font-stack;
    padding: .5em .75em;
    .gradient(#444,#222);
    font-size: 1em;
    color: #fff;
    .round(.25em);
}

#main .box:last-child table input[type="submit"] {
    border: solid 1px transparent;
    font-family: @font-stack;
    padding: .5em .75em;
    .gradient(#444,#222);
    font-size: 1em;
    color: #fff;
    .round(.25em);
    font-size: .75 * @font-size;
}*/

div.msg {
    padding: 1em;
    margin: 28px 0px;
    margin-top: 14px;
    font-size: 1.25em;
    border: solid 1px #666;
    .round(.25em);
    .gradient(#444,#222);
    color: #fff;
    text-shadow: 0px 1px 2px rgba(0,0,0,.4);
}

select {
    width: 100%;
    margin: 0px;
}

#alert {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    padding: .75em 0px;
    font-weight: bold;
    font-size: 1.75em;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: hidden;
    background: #c00;
    .shadow(0px,5px,7px,rgba(0,0,0,.4));
    color: #fff;
    letter-spacing: -0.06em;
    width: 100%;
    text-align: center;
}

#top a {
    display: inline-block;
    padding: .5em 1.1em;
    text-transform: uppercase;
    margin: .5em;
    position: absolute;
    margin-left: 815px;
    margin-top: 13px;
    font-size: .75em;
    .gradient(#eee,#aaa);
    .round(1em);
    border: solid 1px #aaa;
}

.bigpic {
    max-height: 100% !important;
    max-width: 100px;
}

.highlight {
    color: #222 !important;
}